﻿<Page x:Class="SuperKinhLuan.Games.Quadronica.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:quad="clr-namespace:SuperKinhLuan.Games.Quadronica"
    Title="Quadronica" Loaded="Page_Loaded">
    
    <Page.Resources>
        <Style TargetType="{x:Type quad:Square}">
            <Setter Property="Width" Value="20" />
            <Setter Property="Height" Value="20" /> 
            <Setter Property="Margin" Value="1" /> 
        </Style>
        
        <Storyboard x:Key="ErrorAnimation">
            <ColorAnimation 
                Storyboard.TargetName="BoardBorder" 
                Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" 
                To="Red" FillBehavior="Stop" 
                Duration="0:0:0.6" />
        </Storyboard>
    </Page.Resources>

    <Border BorderBrush="DarkGray" BorderThickness="1" CornerRadius="2"  HorizontalAlignment="Center" VerticalAlignment="Center" Padding="1">
        <DockPanel LastChildFill="True">
            <Menu DockPanel.Dock="Top">
                <MenuItem Header="_Game">
                    <MenuItem Header="_New Game" Command="New" />
                    <MenuItem Header="_Save Game" Command="Save" />
                    <Separator />
                    <MenuItem Header="_Pause" />
                    <Separator />
                    <MenuItem Header="_Exit" />
                </MenuItem>
                <MenuItem Header="_Help">
                    <MenuItem Header="_About" />
                </MenuItem>
            </Menu>
            
            <StatusBar DockPanel.Dock="Bottom" BorderThickness="1" BorderBrush="Gray">
                <StatusBarItem Content="Ready" />
            </StatusBar>
            
            <Border x:Name="BoardBorder" BorderThickness="2" BorderBrush="Gainsboro">
                <UniformGrid Columns="9" x:Name="MainBoard">
                </UniformGrid>
            </Border>
            
        </DockPanel>
    </Border>
</Page>